{% extends 'IMTUserBundle::layout-profile.html.twig' %}

{% block main_title %}Profil - Paramètre de compte{% endblock %}

{% block include_style %}
{% endblock %}

{% block profil_ariane %}
	<li>
		<i class="icon-home"></i>Profil
	</li>
{% endblock %}

{% block profil_header %}
<div class="profile-head clearfix">
	<div class="profile-info pull-left">
		<h1 class="profile-username">{{ app.user.username }}</h1>
		<ul class="profile-attributes">
			<li><i class="icon-arrow-right"></i> Email : {{ app.user.email }}</li>
			<li><i class="icon-history"></i> Dernière connexion : {{ app.user.lastLogin|date('d/m/Y à H:i') }}</li>
		</ul>
	</div>
</div>
{% endblock %}

{% block profil_menu %}
{% include 'IMTUserBundle::menu-profile.html.twig' with {'profile_menu_selected' : 'profil'} %}
{% endblock %}

{% block profil_content %}
	<div class="profile-content">
		<div class="tab-content">
			<div class="tab-pane active" id="profile">				
{# 				<h4 class="sub"><span>Informations générales</span></h4>#}
{# 				<div class="row-fluid">#}
					
{# 				</div>#}
							
				<h4 class="sub"><span>Mes profils</span></h4>
				<div class="row-fluid">
				{% for profil in app.user.profils %}
					<div class="span4">
						<div class="thumbnail">
		                  <div class="caption">
		                    <h3>{{ profil.firstname }} {{ profil.name }}</h3>
		                    <p><i class="icos-address-book"></i> Compte : {{ profil.accounts|join(', ') }}</p>
		                    <p><i class="icos-v-card"></i> Email : {{ profil.email }}</p>
		                    <p><a class="btn btn-primary" href="{{ path('imt_user_contact_profil_edit', {'id':profil.id}) }}">Modifier</a></p>
		                  </div>
		                </div>
		            </div>
	            {% endfor %}
		        </div>
			</div>
		</div>
	</div>
{% endblock %}